﻿namespace AutoTest.Core.Domain
{
    public class TestFailure
    {
        public string FullyQualifiedTestName { get; set; }
        public string ShortMessage { get; set; }

        public string TestName
        {
            get
            {
                if (FullyQualifiedTestName.IndexOf('.') < 0)
                    return FullyQualifiedTestName;
                return FullyQualifiedTestName.Substring(FullyQualifiedTestName.LastIndexOf('.') + 1);
            }
        }
    }
}